-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken tests in PHP 5.5 #1293
Conversation
for #1209 |
c71daf6
to
5b13f54
Compare
4466c63
to
3962651
Compare
…ticket/26234#comment:4 check if array before running array_merge
3962651
to
4c09024
Compare
all checks passing! read to go! |
@@ -318,6 +318,11 @@ function test_largo_transition_nav_menus() { | |||
} | |||
|
|||
function test_largo_update_prominence_term_description_single() { | |||
$term9 = get_term_by('slug', 'term-9', 'prominence', 'ARRAY_A'); | |||
if ( ! $term9 ) { | |||
wp_insert_term( 'term-9', 'prominence', array( 'description' => 'Term Description 9' ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't have to create this term; it should have been created by this class' setUp
method: https://github.com/rclations/Largo/blob/a773c5a2cfdbb7706c41085e8388f0d83b583e8e/tests/inc/test-update.php#L29-L31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous comment might be wrong, based on #1209 (comment)
Either way, the test tests what it's supposed to test.
(still in progress)